package com.gm.commonlib.network;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

public class ObserverImpl<T> implements Observer<T> {
    @Override
    public void onSubscribe(Disposable d) {

    }

    @Override
    public void onNext(T t) {

    }

    @Override
    public void onError(Throwable e) {
        if (e != null) {
            e.printStackTrace();
        }
    }

    @Override
    public void onComplete() {
        onCompleted();
    }

    public void onCompleted() {
    }
}
